//前台 - 客户端的clinet.js

let socket = io.connect("http:/192.168.96.1:300?type=client",{
    path:"/chat"
});

$("#send").click(function(){
    var content = $("textarea.form-control").val();
    console.log('发送了消息',content);
    //向客服发送消息
    socket.emit("user-message",{uid:Cookies.get("uuid"),content});
    $("textarea.form-control").val('')
})